package com.punai.standard.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.punai.standard.domain.StaGxFee;
import com.punai.standard.domain.template.StaGxFeeExcel;
import com.punai.standard.domain.vo.StaFeeVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 工序分包费用项Mapper接口
 *
 * @author zxw
 * @date 2022-12-13
 */
public interface StaGxFeeMapper extends BaseMapper<StaGxFee>
{
    /**
     * 查询工序分包费用项
     *
     * @param id 工序分包费用项主键
     * @return 工序分包费用项
     */
    public StaGxFee selectStaGxFeeById(@Param("versionId")String versionId, @Param("id")String id);

    public List<StaGxFee> selectStaGxFeeList(@Param("fee") StaFeeVo fee, @Param("versionId")String versionId,@Param("chapterIds")List<String> chapterIds);
    public List<StaGxFee> selectListByChapterId(@Param("versionId")String versionId,@Param("chapterId")String chapterId);

    List<StaGxFeeExcel> selectExport(@Param("versionId") String versionId);

    List<StaGxFee> selectExportPDF(@Param("versionId") String versionId);

    /**
     * 删除工序分包费用项
     *
     * @param id 工序分包费用项主键
     * @return 结果
     */
    public int deleteStaGxFeeById(String id);

    /**
     * 批量删除工序分包费用项
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteStaGxFeeByIds(String[] ids);

    public List<StaGxFee> queryContrast(@Param("versionId")String versionId, @Param("ids") String[] ids);
}
